//
//  SecondViewController.m
//  UI_Homework_09
//
//  Created by 黄威 on 16/5/13.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self create];
}
-(instancetype)init{
    
    self = [super init];
    if (self) {
        [self create];
    }
    
    
    return self;
    
}

- (void)create{


    self.view.backgroundColor = [UIColor yellowColor];
    self.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"联系人" image:[UIImage imageNamed:@"lianxiren.png"] tag:2000];

    
    UIImageView *image = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"首页"]];

    image.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds)) ;
    [self.view addSubview:image];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
